﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CC98.HtmlParser
{
	/// <summary>
	/// <see cref="HomePageParser"/> 解析器产生的内部数据类型。
	/// </summary>
	internal class HomePageInfo
	{
		/// <summary>
		/// 用户收藏的版块的标识。
		/// </summary>
		public int[] CustomBoardIds
		{
			get;
			set;
		}

		/// <summary>
		/// 论坛的用户总数。
		/// </summary>
		public int UserCount
		{
			get;
			set;
		}

		/// <summary>
		/// 论坛的帖子总数。
		/// </summary>
		public int TopicCount
		{
			get;
			set;
		}

		/// <summary>
		/// 论坛的回复总数。
		/// </summary>
		public int PostCount
		{
			get;
			set;
		}

		/// <summary>
		/// 论坛的今日帖数。
		/// </summary>
		public int TopicToday
		{
			get;
			set;
		}

		/// <summary>
		/// 论坛的发帖记录数目。
		/// </summary>
		public int TopicRecordCount
		{
			get;
			set;
		}

		/// <summary>
		/// 论坛的发帖记录日期。
		/// </summary>
		public DateTime TopicRecordDate
		{
			get;
			set;
		}

		public Collection<HomePageBoardInfo> RootBoards
		{
			get;
			private set;
		}

		public HomePageInfo()
		{
			this.RootBoards = new Collection<HomePageBoardInfo>();
		}
	}
}
